Complex Conditional ^^^^^ **Definition:** * A conditional expression is composed of many boolean conjunctions. **Code Example:** .. code-block:: pseudo function calculateAmount(integer year) return float { var float amount; if (( (year mod 4) == 0 and not (year mod 100) == 0 ) or (year mod 400) == 0 ) { amount := BASE AMOUNT ∗ 366; } else { amount := BASE AMOUNT ∗ 365; } return amount; } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `An approach to quality engineering of TTCN-3 test specifications `_ * `Pattern-based Smell Detection in TTCN-3 Test Suites `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em` * `Utilising Code Smells to Detect Quality Problems in TTCN-3 Test Suites `_